var moment = require("moment");

console.log(1,moment(1409054546*1000).format())
console.log(2,moment().format())
console.log(3,moment().format('YYYYMMDD'));
console.log(4,moment('2018-02-24').unix())
// console.log(4,moment('2018-2-24').unix())
console.log(5,moment().unix())
console.log(6,moment().valueOf())
console.log(7,moment(1409054546911).format()); //ms
console.log(8,moment().valueOf());
console.log(9,moment(20151211, 'YYYYMMDD').valueOf())
console.log(moment().year())
console.log(moment().month())
console.log(moment().date())
console.log(moment().hour())
console.log(moment().minute())
console.log(moment().second())


console.log(moment().format('YYYY-MM-DD HH:mm:ss,SSSZ')); //统一格式